﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UserControlBase.cs"
    Inherits="WholesaleOnline.Infrastructure.Base.UserControlBase" %>
<div id="divProductList">
</div>
<textarea id="txtProductListTemplate" rows="0" cols="0" style="display: none">
    <!--
    {#foreach $T as products}
    <div style="width: 160px; float: left">
        <img src="../images/product/{$T.products.pic}" onclick="oo('product').showDetail({$T.products$index})" />
        <br />
        <div style="overflow: hidden; text-overflow: clip; white-space: nowrap;">
            {$T.products.name}
        </div>
        {$T.products.fullPrice}
    </div>
    {#else} 未找到符合的商品! {#/for}
    -->
</textarea>
<div id="divProduct" style="display: none">
</div>
<textarea id="txtProductTemplate" rows="0" cols="0" style="display: none">
    <!--
    <div style="float: left;">
        <img style="width: 400px; height: 400px;" src="../images/product/{$T.pic}" />
    </div>
    <div style="overflow: hidden; text-overflow: clip; white-space: nowrap; width: 265px;">
        <h3>{$T.name}</h3>
        条码:{$T.sn}
        <br />
        卖家:{$T.seller}
        <br />
        规格:<b style="color: Red">{$T.desc}</b>
        <br/>
        {#if $T.bigUnits.length == 0}
        {#param name=count value=[5, 12, 20, 30, 50]}
        {#foreach $P.count as count}
        <input type="button" value="{$T.count}" onclick="oo('product').prop('quantity', {$T.count})"/>
        {#/for}
        <br />
        {#else}
        {#foreach $T.bigUnits as bigUnit}
        {#for i = 1 to 5}
        <input type="button" value="{$T.i + $T.bigUnit.name}{#if $T.i == 1}/{$T.bigUnit.count + $T.unit}{#/if}"
            onclick="oo('product').chooseBigUnit('{$T.bigUnit.id}', {$T.i})"/>
        {#/for}
        <br />
        {#/for}
        {#/if}
        <input type="button" value="-" onclick="oo('product').increaseQuantity()" />
        <input id="txtProductQuantity" value="" style="width: 50px" />
        <input type="button" value="+" onclick="oo('product').decreaseQuantity()" />
        <br />
        {$T.fullPrice}
        <br />
        <input type="button" value="加入购物车" onclick="oo('product').addToBasket()" />
    </div>
    -->
</textarea>
<script type="text/javascript" src="../js/model/oo.product.js"></script>
